﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="Manage_ChangePassword" %>
<%@ Register Src="~/Manage/CmsMessageBox.ascx" TagName="MessageBox" TagPrefix="cms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=Save.ClientID %>').click(function () {
                var ds = [
                    { 'Controller': '#<%=OldPassword.ClientID %>',
                        'Type': 'R', 'Clear': true, 'Focus': true,
                        'ErrorMessage': '请输入原密码。'
                    },
                    { 'Controller': '#<%=NewPassword.ClientID %>',
                        'Type': 'R', 'Clear': true, 'Focus': true,
                        'ErrorMessage': '请输入新密码。'
                    },
                    { 'Controller': '#<%=NewPassword.ClientID %>',
                        'Controller1': '#<%=RenewPassword.ClientID %>',
                        'Type': 'EQ', 'Clear': true, 'Focus': true,
                        'ErrorMessage': '确认密码与新密码不一致，请重新输入。'
                    }];

                return Cms_ValidateForm(ds);
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">
    <cms:MessageBox ID="MessageBox" runat="server" />
    <table class="Info" cellspacing="1">
        <tr>
            <td align="right" style="width: 100px">原密码：</td>
            <td><asp:TextBox ID="OldPassword" runat="server" Width="300px" TextMode="Password"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">新密码：</td>
            <td><asp:TextBox ID="NewPassword" runat="server" Width="300px" TextMode="Password"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">确认新密码：</td>
            <td><asp:TextBox ID="RenewPassword" runat="server" Width="300px" TextMode="Password"></asp:TextBox></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Save" runat="server" Text="确定" 
                    onclick="Save_Click"/>
            </td>
        </tr>
    </table>
</asp:Content>

